package com.yuhang.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuhang
 * @since 2021-03-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class HyBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name="账单编号")
    private Integer id;


    /**
     * 水费金额
     */
    @Excel(name="水费金额")
    private Double waterBill;

    /**
     * 电费金额
     */
    @Excel(name="电费金额")
    private Double electricityBill;

    /**
     * 物业费金额
     */
    @Excel(name="物业费金额")
    private Double wuyeBill;

    /**
     * 账单时间
     */
    @Excel(name="账单时间")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM")
    private Date billDate;

    /**
     * 缴费状态
     */
    @Excel(name="缴费状态")
    private Integer state;

    /**
     * 缴费日期
     */
    @Excel(name="缴费日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payDate;

    /**
     * 账单费用
     */
    @Excel(name="账单费用")
    private Double allCost;

    /**
     * 业主id
     */
    @Excel(name="业主id")
    private Integer userId;

    /**
     * 业主姓名
     */
    @Excel(name="业主姓名")
    private String userName;



}
